<!DOCTYPE html>
<html>
{% load staticfiles %}
<head>
    <meta charset="UTF-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" >
    <title>{% block title %}{% endblock %}</title>
    <link rel="stylesheet" type="text/css" href="{% static '/css/reset.css' %}">
    <link rel="stylesheet" type="text/css" href="{% static '/css/animate.css' %}">
    <link rel="stylesheet" type="text/css" href="{% static '/css/style.css' %}">
    <link rel="stylesheet" type="text/css" href="/static/js/plugins/queryCity/css/cityLayout.css">
    {% block custom_css %}{% endblock %}
    <script src="/static/js/jquery.min.js" type="text/javascript"></script>
    <script src="/static/js/jquery-migrate-1.2.1.min.js" type="text/javascript"></script>
    {% block custom_js %}{% endblock %}
    <script type="text/javascript" src="../ueditor/ueditor.config.js"></script>
    <script type="text/javascript" src="../ueditor/ueditor.all.min.js"></script>
    <script>
        var _hmt = _hmt || [];
        (function() {
            var hm = document.createElement("script");
            hm.src = "//hm.baidu.com/hm.js?0e1d8c29e648f303478b2f12e5f364c1";
            var s = document.getElementsByTagName("script")[0];
            s.parentNode.insertBefore(hm, s);
        })();
    </script>
</head>
<body>
<section class="headerwrap headerwrap2">
    <header>
        <div  class="header2 header">
            <div class="top">
                <div class="wp">
                    <div class="fl"><p>服务电话：<b>4001008031</b></p></div>
                    <!--登录后跳转-->

                     {% if not request.user.is_authenticated %}
                            <a style="color:white" class="fr registerbtn" href="/register/">注册</a>
                            <a style="color:white" class="fr loginbtn" href="/login/">登录</a>
						{% else %}
						    <div class="personal">
                            <dl class="user fr">
                                <dd>{{ user.username }}<img class="down fr" src=""/></dd>
                                <dt><img width="20" height="20" src="{{ MEDIA_URL }}{{ user.image }}"/></dt>
                            </dl>
                            <div class="userdetail">
                            	<dl>
	                                <dt><img width="80" height="80" src="{{ MEDIA_URL }}{{ user.image }}"/></dt>
	                                <dd>
	                                    <h2>django</h2>
	                                    <p>{{ user.username }}</p>
	                                </dd>
                                </dl>
                                <div class="btn">
	                                <a class="personcenter fl" href="usercenter-info.html">进入个人中心</a>
	                                <a class="fr" href="/logout/">退出</a>
                                </div>
                            </div>
                        </div>
                        {% endif %}
                    <a href="/user/message/">
                        <div class="msg-num"> </div>
                    </a>

                </div>
            </div>
            <div class="middle">
                <div class="wp">
                    <a href="/"><img class="fl" src="/static/images/logo2.png"/></a>
                    <h1>我的慕学网</h1>
                </div>
            </div>
        </div>
    </header>
</section>
<!--crumbs start-->
{% block custom_bread %}
{% endblock %}

<section>
    <div class="wp list personal_list">
    {% block left %}

    {% endblock %}
    {% block right %}

    {% endblock %}
    </div>

</section>

<!--sidebar start-->
<section>
    <ul class="sidebar">
        <li class="qq">
            <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=2023525077&site=qq&menu=yes"></a>
        </li>
        <li class="share">
            <div class="bdsharebuttonbox"
                 data-text="慕学网"
                 data-desc="#慕学网#慕学网"
                 data-comment="慕学网"
                 data-url="/">
                <span class="fl">分享到：</span>
                <a href="#" class="bds_more" data-cmd="more"></a>
                <a title="分享到QQ空间" href="#" class="bds_qzone" data-cmd="qzone"></a>
                <a title="分享到新浪微博" href="#" class="bds_tsina" data-cmd="tsina"></a>
                <a title="分享到腾讯微博" href="#" class="bds_tqq" data-cmd="tqq"></a>
                <a title="分享到人人网" href="#" class="bds_renren" data-cmd="renren"></a>
                <a title="分享到微信" href="#" class="bds_weixin" data-cmd="weixin"></a>
            </div>
        </li>
        <li class="code">
            <img class="sidecode" src="/static/images/code.jpg"/>
        </li>
        <li class="totop"></li>
    </ul>
</section>
<!--sidebar end-->
<!--header start-->
<script src="/static/js/selectUi.js" type='text/javascript'></script>
<script type="text/javascript" src="/static/js/plugins/laydate/laydate.js"></script>
<script src="/static/js/plugins/layer/layer.js"></script>
<script src="/static/js/plugins/queryCity/js/public.js" type="text/javascript"></script>
<script src="/static/js/unslider.js" type="text/javascript"></script>
<script src="/static/js/plugins/jquery.scrollLoading.js"  type="text/javascript"></script>
<script src="/static/js/validateDialog.js"  type="text/javascript"></script>
<script src="/static/js/deco-common.js"  type="text/javascript"></script>

<script type="text/javascript">
    $(function(){
        $('.jsDeleteFav').on('click', function(){
            var _this = $(this),
                    favid = _this.attr('data-favid');
            $.ajax({
                cache: false,
                type: "POST",
                url: "/common/delfavorite/",
                data: {
                    typeid: 4,
                    favid: favid,
                    csrfmiddlewaretoken: 'ho2CbCjFYzewHCnFlk27nUJ9AB7bZqsr'
                },
                async: true,
                success: function(data) {
                    if(data.status == 'success'){
                        _this.parent().parent().remove();
                    }
                },
                error:function(){
                    Dml.fun.winReload();
                }
            });
        });
    });
</script>
<script>
    var shareUrl = '',
            shareText = '',
            shareDesc = '',
            shareComment = '';
    $(function () {
        $(".bdsharebuttonbox a").mouseover(function () {
            var type = $(this).attr('data-cmd'),
                    $parent = $(this).parent('.bdsharebuttonbox'),
                    fxurl = $parent.attr('data-url'),
                    fxtext = $parent.attr('data-text'),
                    fxdesc = $parent.attr('data-desc'),
                    fxcomment = $parent.attr('data-comment');
            switch (type){
                case 'tsina':
                case 'tqq':
                case 'renren':
                    shareUrl = fxurl;
                    shareText = fxdesc;
                    shareDesc = '';
                    shareComment = '';
                    break;
                default :
                    shareUrl = fxurl;
                    shareText = fxtext;
                    shareDesc = fxdesc;
                    shareComment = fxcomment;
                    break;
            }
        });
    });
    function SetShareUrl(cmd, config) {
        if (shareUrl) {
            config.bdUrl = "http://www.domile.com.cn" + shareUrl;
        }
        if(shareText){
            config.bdText = shareText;
        }
        if(shareDesc){
            config.bdDesc = shareDesc;
        }
        if(shareComment){
            config.bdComment = shareComment;
        }

        return config;
    }
    window._bd_share_config = {
        "common": {
            "onBeforeClick":SetShareUrl,
            "bdPic":"http://www.domile.com.cn/static/images/logo2.png",
            "bdMini":"2",
            "searchPic":"1",
            "bdMiniList":false
        },
        "share": {
            "bdSize":"16"
        }
    };
    with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];
</script>
</body>
</html>



